package com.ruoyi.front_desk.frontdesksuggestions.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.front_desk.frontdesksuggestions.domain.FrontdeskSuggestions;
import com.ruoyi.front_desk.frontdesksuggestions.mapper.frondesksuggestionsMapper;
import com.ruoyi.front_desk.frontdesksuggestions.service.FrontdeskSuggestionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 刘奥旸
 * @version 1.0
 */
@Service
public class FrontdeskSuggestionsImpl implements FrontdeskSuggestionsService {

@Autowired
frondesksuggestionsMapper frondesksuggestionsMapper;
    @Override
    public List<FrontdeskSuggestions> selectFrontdeskSuggestionsById(Integer id) {

        if (id == 0){
            return frondesksuggestionsMapper.selectFrontdeskSuggestionsall();
        }else {
            return frondesksuggestionsMapper.selectFrontdeskSuggestionsbyid(id);

                   }



    }
}
